home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / devices / modm0dev.zoo / Makefile < prev    next >
Encoding:
Makefile  |  1993-10-12  |  1.6 KB  |  82 lines

  1. #
  2. # Makefile for modm0dev; see "COPYING" for distribution conditions.
  3. #
  4.  
  5. CC    = gcc
  6. CFLAGS    = -mshort -Wall -I. $(DEFINES) $(OPTIM)
  7. DEFINES    =
  8. OPTIM    = -O2 -fomit-frame-pointer
  9.  
  10. DRIVER    = modm0dev.ttp
  11. DRIVER2    = modm0dev.syslog
  12. STTY    = stty.ttp
  13. FMANP    = modm0dev.asc
  14.  
  15. OBJ1    = modm0dev.o  modm0asm.o
  16. OBJ2    = modm0dev.o2 modm0asm.o syslog.o
  17. BINS    = $(DRIVER) $(DRIVER2) $(STTY)
  18.  
  19. ARCHDIR = /h/Archives
  20.  
  21. SOURCES    = atarierr.h filesys.h        \
  22.     modm0dev.h modm0dev.c modm0asm.s    \
  23.     syslog.h syslog.c            \
  24.     stty.c Makefile COPYING modm0dev.8 LISEZ.MOI
  25.  
  26. #
  27. # The default is to build the two drivers, stty, and the manpage.
  28. #
  29.  
  30. all: $(BINS) $(FMANP)
  31.  
  32. clean:
  33.     rm -f *.o* *.bak $(BINS) $(FMANP)
  34.  
  35. #
  36. # Archiving
  37. #
  38.  
  39. archive: $(BINS) $(FMANP)
  40.     zoo aunhP: modm0dev.zoo $(SOURCES) $(BINS) $(FMANP)
  41.     cp -p modm0dev.zoo $(ARCHDIR)
  42.  
  43. #
  44. # The device driver (normal version and syslog version)
  45. #
  46.  
  47. $(DRIVER): $(OBJ1)
  48.     $(CC) -mshort -s $(OBJ1) -o $(DRIVER)
  49.     toglclr -fload -super $(DRIVER)
  50.     chmod +x $(DRIVER)
  51.  
  52. $(DRIVER2): $(OBJ2)
  53.     $(CC) -mshort -s $(OBJ2) -o $(DRIVER2) -liio16
  54.     toglclr -fload -super $(DRIVER2)
  55.     chmod +x $(DRIVER2)
  56.  
  57. modm0asm.o: modm0asm.s
  58.     $(CC) -c modm0asm.s
  59.  
  60. modm0dev.o2: modm0dev.c atarierr.h filesys.h modm0dev.h syslog.h
  61.     $(CC) $(CFLAGS) -DUSE_SYSLOG -c modm0dev.c -o modm0dev.o2
  62.  
  63. modm0dev.o: modm0dev.c atarierr.h filesys.h modm0dev.h
  64. syslog.o: syslog.c syslog.h
  65.  
  66. #
  67. # A slightly enhanced stty
  68. #
  69.  
  70. $(STTY): stty.c
  71.     $(CC) -O stty.c -s -o $(STTY) -liio
  72.     toglclr -fload $(STTY)
  73.     chmod +x $(STTY)
  74.  
  75. #
  76. # The manpage
  77. #
  78.  
  79. $(FMANP): modm0dev.8
  80.     cawf -man -fn modm0dev.8 > $(FMANP)
  81.  
  82.